package Figuras;

import java.awt.Color;
import java.awt.geom.Point2D;

public abstract class FiguraConRelleno extends Figura {

    private Color ColorDelRelleno;

    public FiguraConRelleno() {
        super();
        fijarElColorDeRelleno(Color.WHITE);
    }

    public FiguraConRelleno(Point2D punto, Color colorDelBorde, Color colorDelRelleno, int grosorDelBorde) {
        super(punto, colorDelBorde, grosorDelBorde);
        fijarElColorDeRelleno(colorDelRelleno);
    }

    public FiguraConRelleno(int x, int y, Color colorDelBorde, Color colorDelRelleno, int grosorDelBorde) {
        super(x, y, colorDelBorde, grosorDelBorde);
        fijarElColorDeRelleno(colorDelRelleno);
    }

    public final Color dameElColorDelQueEstaRellenada() {
        return ColorDelRelleno;
    }

    public final void fijarElColorDeRelleno(Color ColorDelRelleno) {
        this.ColorDelRelleno = ColorDelRelleno;
    }
}
